package com.aorise.mapper.migration;

import com.aorise.model.migration.MigrationAddVO;
import com.aorise.model.migration.MigrationModel;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.dao.DataAccessException;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

/**
* @Author:cat
* @Description 迁建记录通知mybatis接口类
* @Date:Created in 2019-06-03
* @Modified By:
*/
@Mapper
@Component(value = "migrationInformMapper")
public interface MigrationInformMapper {

    /**
     * @Author:cat
     * @Description 查询迁建记录未读消息总数
     * @params: map 查询条件Map
     * @Date:2019-06-03
     * @Return: Long 数据总条数
     * @Modified By:
     */
    Long getMigrationInformByUserId(Map<String, Object> map) throws DataAccessException;

    /**
     * @Author:cat
     * @Description 删除迁建记录通知信息
     * @params: map 查询条件Map
     * @Date:2019-06-03
     * @Return: Integer 影响行数
     * @Modified By:
     */
    Integer deleteMigrationInform(Map<String, Object> map) throws DataAccessException;

    /**
     * @Author:cat
     * @Description 新增迁建记录通知信息
     * @params: map 查询条件Map
     * @Date:2019-06-18
     * @Return: Integer 影响行数
     * @Modified By:
     */
    Integer addMigrationInform(Map<String, Object> map) throws DataAccessException;
}